﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class LoaiKhachBUS
    {
        public static List<LoaiKhachDTO> layDSLoaiKhach()
        {
            return LoaiKhachDAO.LayDSLoaiKhach();
        }

        public static bool themLoaiKhach(string tenLoaiKhach, double heSo)
        {
            return LoaiKhachDAO.ThemLoaiKhach(tenLoaiKhach, heSo);
        }

        public static void xoaLoaiKhach(long maLoaiKhach)
        {
            LoaiKhachDAO.XoaLoaiKhach(maLoaiKhach);
        }

        public static void updateLoaiKhach(long maLoaiKhach, string tenLoaiKhach, double heSo)
        {
            LoaiKhachDAO.UpdateLoaiKhach(maLoaiKhach, tenLoaiKhach, heSo);
        }
    }
}
